<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/head.jsp"%>
<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/sys/queryTeacherScore.do" method="post">
		<div class="bjui-searchBar">
			<label>账号：</label>
			<input type="text" value="" name="s_uname" class="form-control" size="10">
			&nbsp;
			<label>姓名：</label>
			<input type="text" value="" name="s_userName" class="form-control" size="8">
			&nbsp;
			<button type="submit" class="btn-default" data-icon="search">查询</button>
			&nbsp;
			<a  class="btn btn-blue" href="${ctx}/sys/exportTeacherScore.do" data-icon="print" target="_blank" >打印结果</a>
			&nbsp;
		</div>
	</form>
</div>
<div class="bjui-pageContent tableContent">
	<table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
		<thead>
			<tr>
				<th width="60"></th>
				<th>账号</th>
				<th>姓名</th>
				<th>性别</th>
				<th>所在系部</th>
				<th>评分人次</th>
				<th>总分</th>
				<th>排名</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="item" varStatus="vitem">
				<tr data-id="${item.id }"
					<c:if test="${SESSION_BEAN.role=='Teacher' and SESSION_BEAN.user.id==item.id}">style="background-color: yellow"
				</c:if>>
					<td>
						<img alt="" src="${ctx}/resource/${item.photo}" style="border-radius: 0.1em;" width="60px"
							onerror="javascript:this.src='${ctx}/resource/no-head.png'">
					</td>
					<td>${item.uname}</td>
					<td>${item.userName}</td>
					<td>${item.userGender}</td>
					<td>${item.spec.name}</td>
					<td>${item.ren}</td>
					<td>${item.score}- ${item.scoreType }</td>
					<td>${vitem.count}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<div class="bjui-pageFooter">
	<div class="pages">
		<span>&nbsp;共 ${SESSION_PAGE.totalNumber} 条</span>
	</div>
	<div class="pagination-box" data-toggle="pagination" data-total="${SESSION_PAGE.totalNumber}"
		data-page-size="${SESSION_PAGE.itemsPerPage}" data-page-current="${SESSION_PAGE.currentPageNumber}"></div>
</div>